EMT Practice Test

1. Question Content...


Question List

Question1: A Mule project contains a DataWeave module file WebStore dvA that defines a function named loginUser The module file is located in the projects src/main/resources/libs/dw folder What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the login "[email protected]"?

Question2: Refer to the exhibits.

The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.
What is the payload shown in the debugger at this breakpoint?

Question3: What is not the function of API Gateway ?

Question4: An API has been created in Design Center. What is the next step to make the API discoverable?

Question5: What is the correct Syntax to add a customer ID as a URI parameter in the HTTP listener's path attribute?

Question6: Refer to the exhibits.

The two Mule configuration files belong to the same Mule project. Each HTTP Listener is configured with the same host string and the port number, path, and operation values are shown in the display names.
What is the minimum number of global elements that must be defined to support all these HTTP Listeners?

Question7: Refer to the exhibit.

The default scope in choice router recursively calls the color flow.
A web client sends a PUT request to the HTTP listener with payload Blue.
What response is returned to the web client?

Question8: Refer to the exhibits.


A JSON payload is set in the Set Payload transformer.
What is logged by the Logger?

Question9: Refer to the exhibit.

What is a valid expression for the Choice router's when expression to route events to the documenticShipping flow?

Question10: What payload is returned by a Database SELECT operation that does not match any rows in the database?

Question11: How does APIkit determine the number of flows to generate from a RAML specification?

Question12: Refer to the exhibits.


The Validation component in the Try scope throws an error.
What response message is returned to a client request to the main flow's HTTP Listener?
The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

Question13: Refer to the exhibits.


The Batch Job scope processes the array of strings
After the Batch Job scope completes processing the input payload what information is logged by the Logger component?

Question14: Refer to exhibits.

What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?

Question15: Refer to the exhibits.
The mule application implements a REST API that accepts GET request from two URL's which are as follows
1)
http://acme.com/order/status
2)
http://acme.com/customer/status
What path value should be set in HTTP listener configuration so that requests can be accepted for both these URL's using a single HTTP listener event source?

Question16: Refer to the exhibit.

The main flow contains a Flow Reference for the child flow.
What
values are accessible in the child flow after a web client submits a request to http://localhost:8Q81/order?
color=red?

Question17: Refer to the exhibits. A company has defined this Book data type and Book example to be used in APIs. What is valid RAML for an API that uses this Book data type and Book example?

Question18: Refer to the exhibit.

What Database expression transforms the input to the output?

Question19: A shopping API contains a method to look up store details by department.
To get the information for a particular store, web clients will submit requests with a query parameter named department and uri parameter named storeId What is valid RAML snippet that supports requests from a web client to get a data for a specific storeId and department name?

Question20: Refer to the exhibits.

What is valid text to set the field in the Database connector configuration to the username value specified in the config.yaml file?

Question21: Refer to the exhibits.

The Set Variable transformer is set with value #[ [ first "Max" last "Mule"} ].
What is a valid DataWeave expression to set as the message attribute of the Logger to access the value "Max" from the Mule event?

Question22: Refer to the exhibits.


A web client sends a POST request to the HTTP Listener with the payload "Hello-". What response is returned to the web client?
What response is returned to the web client?

Question23: What is output of Dataweave flatten function?

Question24: Refer to the exhibits.

The main flow contains an HTTP Request. The HTTP Listeners and HTTP Request use default configurations.
What
values are accessible in the child flow after a web client submits a request to http://localhost:8081/order? col or
= red?

Question25: Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?

Question26: An SLA based policy has been enabled in API Manager. What is the next step to configure the API proxy to enforce the new SLA policy?

Question27: Which of the below is not a valid category for connector type?

Question28: A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation.
What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?

Question29: Refer to the exhibit.



What payload is returned from a request to http//localhost.8081/
Refer
to the exhibits, what payload is returned from a request to http://localhost;8081/?

Question30: How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?

Question31: Which one of them is NOT a flow in Mule?

Question32: A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project's src/main/resources/modules folder.
What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module's formatString function?

Question33: What valid RAML retrieves details on a specific customer by its customerId as a URI parameter?

Question34: Refer to the exhibit.
The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer.
What is the next step to fix the error to get the project to run successfully?

Question35: In an application network. If the implementation but not the interface of a product API changes, what needs to be done to the other APIs that consume the product API?

Question36: As a part of project requirement , you want to build an API for a legacy client. Legacy client can only consume SOAP webservices. Which type the interface documentation can be prepared to meet the requirement?

Question37: Refer to the exhibits.

The input array of strings is processed by the batch job that processes, fitters, and aggregates the values.
What is the last message logged by the Logger component after the batch job completes processing?

Question38: Refer to the exhibits. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP Request use default configurations.
A web client submits a request to the main flow's HTTP Listener that includes query parameters for the pedigree of the piano.
What values are accessible to the Logger component at the end of the main flow?

Question39: Which file is used to define the interface contract to invoke a web service implemented as a SOAP service

Question40: What is the minimum Cloudhub worker size that can be specified while deploying mule application?

Question41: Refer to the exhibits. The Mule application does NOT define any global error handler elements. A web client sends a GET request to the HTTP Listener. What response message is returned to the web client?

Question42: What statement is a part of MuleSoft's description of an application network?

Question43: Refer to the exhibits.


A web client submits a request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client?
Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client?

Question44: A Mule application configured with Autodiscovery implements an API.
Where is governance enforced for policies defined for this Mule application?

Question45: Refer to the exhibits.

This main mule application calls a separate flow called as ShippingAddress which returns the address corresponding to the name of the user sent to it as input. Output of this ShippingAddress is stored in a target variable named address.
Next set of requirement is to have a setPayload transformer which will set below two values
1) orderkey which needs to set to be equal to the order element received in the original request payload.
2) addressKey which needs to be set to be equal to the address received in response of ShippingAddress flow What is the straightforward way to properly configure the Set Payload transformer with the required data?


A mule application is being developed which will process POST requests coming from clients containing the name and order information. Sample request is as below

Question46: Refer to the exhibits.


The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

Question47: Refer to the exhibits.


Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file. What valid expression can be used to so that HTTP configuration can pick the value from configuration file?

Question48: As a part of requirement , application property defined below needs to be accessed as dataweave expression.
What is the correct expression to map it to port value?

Question49: Refer to the exhibits.

The Set Payload transformer's value is set to {'year': '2020'}.
What message value should be added to the Logger component to output the message 'The year is 2020', without hardcoding 2020?

Question50: What is the main purpose of flow designer in Design Center?

Question51: Which of the below is not the mandatory configurations for HTTP Listener?

Question52: Refer to the exhibits. In the color flow , both the variable named color and payload are set to "red".
An HTTP POST request is then sent to the decideColor flow's HTTP Listener.
What is the payload value at the Logger component after the HTTP request completes?

Question53: Refer to the exhibits.

What payload and quantity are togged at the end of the main flow?

Question54: What is the output type of the DataWeave map operator?

Question55: What is the output of Dataweave Map operator?

Question56: Refer to the exhibit. This RAML fragment defines a Book data type that is used in a RAML API specification.
An API implementation is created for this RAML API specification.
What is valid JSON input for a request from a web client to an implementation of this RAML API specification?

Question57: According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?

Question58: Mule application contains ActiveMQ JMS dependency. Mule application was compiled and run successfully in Anypoint Studio. The mule application must now be exported from Anypoint Studio and shared with other developer. What export options should be selected to create the smallest JAR file that can be imported into other developer's Anypoint Studio and run successfully?

Question59: What DataWeave expression transforms the array a to the XML output?

Question60: What of the below is not a feature of API Notebooks?

Question61: Refer to the exhibit. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP request use default configurations.
What values are accessible to the Logger at the end of the flow after a web client submit request to
http://local:801/order?color=red?

Question62: Refer to the exhibit.


How should be the where clause written for the configured input parameters in such a way that it achieves below SQL query?

Question63: Refer to the exhibits. APIKit router is used to generate the flow components for RAML specification.
The Mule application must be available to REST clients using the two URL's
http://localhost:8081/internal
and http://localhost:8081/external
How many APIKit Router components are generated to handle requests to every endpoint defined in RAML specification?
1.Library.raml
2./books
3. get:
4. post:
5./order:
6. get
7. patch
8./members
9. get:

Question64: A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case.
What is the correct DataWeave to call the pascalize function in a Transform Message component?

Question65: A company has an API to manage purchase orders, with each record identified by a unique purchase order ID.
The API was built with RAML according to MuleSoft best practices.
What URI should a web client use to request order P05555?

Question66: What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?

Question67: Refer to the below exhibit.
A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector.
What is the valid properties placeholder file to set these values?

Question68: What is the correct syntax to define and call a function in Database?

Question69: Refer to the exhibits.


Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.
What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?

Question70: Refer to the exhibits.



A Mule application is being developed to process web client POST requests with payloads containing order information including the user name and purchased items The Shipping connector returns a shipping address for the input payloads user name The Shipping connector's Shipping Address operation is configured with a target named shippingAddress.
The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the the ShippingAddress operation's response What is a straightforward way to property configure the Set Payload transformer with the required data?

Question71: Refer to the exhibits.


What payload and quantity are logged at the end of the main flow?

Question72: In the execution of scatter gather, the "sleep 2 sec" Flow Reference takes about 2 sec to complete, and the
"sleep 8 sec" Flow Reference takes about 8 sec to complete.
About how many sec does it take from the Scatter-Gather is called until the "Set Payload" transformer is called?

Question73: What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

Question74: A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?

Question75: How would you debug Mule applications?

Question76: How we can scale deployed Mule application vertically on cloudhub?

Question77: What valid RAML retrieves details on a specific by its orderld as a URL parameter?

Question78: Refer to the exhibit.

What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?

Question79: Which of the below is used by Mule application to manage dependencies which make sharing the projects lightweight and easier?

Question80: From which application , Organization Administrators can approve/revoke/delete SLA tier access requests

Question81: What MuleSoft product enables publishing, sharing, and searching of APIs?

Question82: Refer to the exhibits.
A web client sends a GET request to the HTTP Listener.
What response message is returned to the web client?

Question83: Refer to the exhibits.

The mule application is debugged in Anypoint Studio and stops at the breakpoint as shown in below exhibit.
What is the value of the payload displayed in the debugger at this breakpoint?

Question84: Refer to the exhibit.

What Database expression transforms the input to the output?

Question85: Refer to the exhibit. The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating. What payload is logged by the Logger component?

Question86: Does a root element required when creating a XML response using Dataweave?

Question87: A web client sends one GET request to the test flow's HTTP Listener, which causes the test flow to call the updateTemp flow After the test flow returns a response, the web client then sends a different GET request to trie getTemp flow's HTTP Listener The test flow is not called a second time.
What response is returned from the request to the getTemp flow's HTTP Listener?


Question88: Refer to the exhibits.
Larger image

Larger image

Larger image

The Mule application configures and uses two HTTP Listener global configuration elements.
Mule application is run in Anypoint Studio.
If the mule application starts correctly, what URI and port numbers can receive web client requests? If the mule applications fails to start , what is the reason for the failure?

Question89: In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?

Question90: An API implementation has been deployed to CloudHub and now needs to be governed. IT will not allocate additional vCore for a new Mule application to act as an API proxy.
What is the next step to preseive the current vCore usage, but still allow the Mule application to be managed by API Manager?

Question91: Where is metadata stored in a Mule project

Question92: What is minimal requirement in a flow for a Mule application to compile?

Question93: Refer to the exhibit.

The Mule application Is debugged in Any point Studio and stops at the breakpoint What is the value of the payload displayed In the debugger at this breakpoint?

Question94: Which out of below is not an asset?

Question95: What HTTP method in a RESTful web service is typically used to completely replace an existing resource?